package cn.wolfcode.luowowo.common.util;

import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/**
 * BeanUtils 要 try 恶心，抽取一下
 */
public class BeanUtil {

    public static void copyProperties(Object target, Object src){
        try {
            BeanUtils.copyProperties(target, src);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
    }


}
